package cn.cmeizu;

import cn.cmeizu.bean.ApplicationContext;
import cn.cmeizu.bean.impl.AnnotationContextApplicationContext;
import cn.cmeizu.service.UserService;

/**
 * @author cmeizu
 * @date 2023/2/12 00:12
 */
class ApplicationContextTest {
  public static void main(String[] args) {
    ApplicationContext context = new AnnotationContextApplicationContext("cn.cmeizu");
    UserService userService = (UserService) context.getBean(UserService.class);
    System.out.println(userService);
    userService.add();
  }
}